Add Discord Early Adopter role for EAP customers#384
Merged
Conversation
Mirrors the existing Max role flow: EAP customers (users with licenses created before June 1, 2025) can now receive the Early Adopter Discord role automatically when connecting their Discord account, or via the request button on the access banner. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mirrors the existing Max Discord role flow for Early Access Program (EAP) customers. Users who purchased licenses before June 1, 2025 (
isEapCustomer()) can now receive the Early Adopter Discord role (role ID1326505265079521353) automatically when connecting their Discord account, or via a dedicated request button on the access banner.Changes
config/services.php: Newearly_adopter_role_idconfig key backed byDISCORD_EARLY_ADOPTER_ROLE_IDenv var.app/Support/DiscordApi.php: Refactored role API calls into sharedassignRole/removeRole/hasRolehelpers and addedassignEarlyAdopterRole(),removeEarlyAdopterRole(), andhasEarlyAdopterRole().discord_early_adopter_role_granted_attimestamp touserstable.Usermodel: Casts the new timestamp.DiscordAccessBannerLivewire component: TrackshasEarlyAdopterRolestatus and adds arequestEarlyAdopterRole()action gated onisEapCustomer()and guild membership.DiscordIntegrationController: On OAuth callback, assigns both Max and Early Adopter roles when applicable. On disconnect, removes both roles.Configuration
Add to
.env:Test plan
🤖 Generated with Claude Code